package org.jet.emall.rbac.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-04-05 16:34
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AdminMenuVO对象", description="后台菜单")
public class AdminMenuVO implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "菜单id")
    private Integer id;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "菜单对应的组件的路由")
    private String path;

    @ApiModelProperty(value = "菜单左侧的图标")
    private String icon;

    @ApiModelProperty(value ="子菜单列表")
    List<AdminMenuVO> children;

}
